package com.yq.bdm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yq.bdm.dao.GroupRoleDao;
import com.yq.bdm.entity.GroupRoleEntity;
import com.yq.bdm.service.GroupRoleService;



@Service("groupRoleService")
public class GroupRoleServiceImpl implements GroupRoleService {
	@Autowired
	private GroupRoleDao groupRoleDao;
	
	@Override
	public GroupRoleEntity queryObject(Long id){
		return groupRoleDao.queryObject(id);
	}
	
	@Override
	public List<GroupRoleEntity> queryList(Map<String, Object> map){
		return groupRoleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return groupRoleDao.queryTotal(map);
	}
	
	@Override
	public void save(GroupRoleEntity groupRole){
		groupRoleDao.save(groupRole);
	}
	
	@Override
	public void update(GroupRoleEntity groupRole){
		groupRoleDao.update(groupRole);
	}
	
	@Override
	public void delete(Long id){
		groupRoleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		groupRoleDao.deleteBatch(ids);
	}
	
}
